import * as React from 'react';
import { connect } from 'umi'
interface IAppProps {
  adminname: string
}

const App: React.FunctionComponent<IAppProps> = (props) => {
  return (
    <div>系统首页 - { props.adminname }</div>
  );
};

export default connect((state: any) => {
  return {
    adminname: state.user.adminname
  }
})(App);
